/**
 * 
 */
package com.net.shop.car.manager.api.volley.request;

import org.json.JSONException;
import org.json.JSONObject;

import com.net.shop.car.manager.api.volley.Request;
import com.net.shop.car.manager.utils.Constants;
import com.net.shop.car.manager.utils.LogUtils;

/**
 * 找回密码
 * 请使用Response作响应
 * @author DeveXu
 *
 */
public class LookForPassword extends Request {

	/**
	 * 手机号
	 */
	private String mobile;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 验证码
	 */
	private String rand;
	
	/**
	 * @param mobile
	 * @param password
	 * @param rand
	 */
	public LookForPassword(String mobile,String password,String rand) {
		super(Constants.LOOK_FOR_PWD);
		this.mobile = mobile;
		this.password = password;
		this.rand = rand;
	}

	/* (non-Javadoc)
	 * @see com.net.shop.car.manager.api.volley.Request#extensionJSON(org.json.JSONObject)
	 */
	@Override
	public void extensionJSON(JSONObject jsonObject) {
		try {
			jsonObject.put("mobile", mobile);
			jsonObject.put("password", password);
			jsonObject.put("rand", rand);
		} catch (JSONException e) {
			LogUtils.e(e.getMessage());
		}
	}

}
